home *** CD-ROM | disk | FTP | other *** search
- program test;
-
- uses fossil;
-
- var
- Fos : PFossil;
-
- begin
- New(Fos,Init(2));
- if Fos^.GetFossilActive then begin
- Fos^.SetBaud(19200);
- Fos^.HardwareFlowControl;
- writeln;
- writeln;
- writeln('Fossil Information');
- writeln(Fos^.GetFossilIDString);
- writeln('Size Of Output Buffer ',Fos^.SizeOfOutputBuffer);
- writeln('Size Of Input Buffer ',Fos^.SizeOfInputBuffer);
- writeln('Free Space in Output Buffer ',Fos^.FreeSpaceInOutputBuffer);
- writeln('Free Space in Input Buffer ',Fos^.FreeSpaceInInputBuffer);
- writeln('Fossil Version ',Fos^.GetFossilVersion);
- writeln('Fossil Revision ',Fos^.GetFossilRevision);
- writeln;
- if not Fos^.CarrierDetected then
- writeln('No Carrier')
- else begin
- Fos^.PutStringCD('Hello Everyone' + cr);
- end;
-
- while not Fos^.InputBufferEmpty do (* if any characters in input buffer then display them *)
- write(Fos^.GetChar);
-
- Fos^.FlushOutputBuffer; (* make sure all remaining data is out of the fossil before close *)
- end else
- writeln('Could not initialize Fossil Driver');
- dispose(Fos,Done);
- end.
-